import { uniq } from 'lodash'
import moment from 'moment'
import { apiKey, age, greet } from './config'
import User, { createUrl, gravatr } from './user'

const arr = [1, 2, 2, 5, 4, 3, 2];
console.log(uniq(arr));

console.log(apiKey, age);

greet('es6');

const user = new User('Jean', 'jean@163.com');
console.log(user);
const username = createUrl(user.name);
console.log(username);
const image = gravatr(user.email);
console.log(image);

console.log(moment().format('dddd'));